<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>子绝对父相对</title>
		<style>
			.course-img {
				width: 900px;
				height: 380px;
			}
			.zuo,
			.you{
				width: 50px;
				height: 50px;
				background: rgba(28,31,33,.1);
				border-radius: 25px;
				position: absolute;
			}
			.course {
				position: relative;
				width: 900px;
			}
			.zuo {
				top: 50%;
			}
			.you {
				right: 0px;
				top: 50%;
			}
			.zuo:hover {
				cursor: pointer;
			}
		</style>
	</head>
	<body>
		<div class="course">
			<img class="course-img" src="1.jpg" alt="" >
			<div class="zuo">
				<img src="zuo.png" alt="">
			</div>
			<div class="you">
				<img src="you.png" alt="">
			</div>
			
		</div>
		
	</body>
</html>